<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>
/*

    window.localStorage.pname = "电脑"
    window.sessionStorage.pname = "电脑"
*/
window.localStorage.pname = "电脑"
    window.sessionStorage.pname = "电脑"

</script>
</body>
</html>